/*
 * Created on Sep 11, 2003
 * EditorRole
 * Local Projects Database
 * (comparator) 2003 eRomania Gateway Association
 *
 */
package ro.gateway.aida.usr;

/**
 * @author Mihai Postelnicu
 * EditorRole
 *
 *  *
 */
public class EditorRole extends RegisteredRole
{
      public EditorRole()
      {
            name = "Editor";
            description = "This role allows adding new projects";
            id = GroupRole.EDITOR_ROLE;
      }

      public int editor_roles[] =
            {
                  Perms.OBJECT_SUBMIT
            };

      public boolean canDo( int action )
      {
            if ( super.canDo( action ) ) return true;
            for ( int i = 0; i < editor_roles.length; i++ )
            {
                  if ( editor_roles[ i ] == action ) return true;
            }
            return false;
      }
}
